package com.meihua.shellapp.activity;

import android.os.Bundle;
import android.support.v4.app.FragmentTransaction;

import com.meihua.shellapp.R;
import com.meihua.shellapp.base.BaseActivity;
import com.meihua.shellapp.fragment.HomeFragment;

import butterknife.OnClick;

/**
 * 产品更多 页面
 */
public class GoodsSecondActivity extends BaseActivity {

    @Override
    public int getLayoutId() {
        return R.layout.activity_goods_second;
    }

    @Override
    public void initView(Bundle savedInstanceState) {
        String id = getIntent().getStringExtra("id");
        /*打开首页fm 传*/
        FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
        transaction.replace(R.id.goods_fragment, HomeFragment.newInstance(id)).commit();
    }
}
